<?
	$p = (isset($_GET['p']))?$_GET['p']:null;
	$QUERY = (isset($_SERVER['QUERY_STRING']))?$_SERVER['QUERY_STRING']:'';
	$CUR_PAGE = $_SERVER['PHP_SELF']."?".$QUERY;
?>
<!--start login box-->
	<div id='loginBox'>
		<div id='loginTitle'>BoX Login</div>
		<form name='login' method='post' action='<?=$CUR_PAGE;?>'>
			<input onFocus="if(this.value=='username')this.value='';" name='username' id='username' type='text' value='<?=(isset($_COOKIE['username']))?$_COOKIE['username']:'username';?>' size='30' />
			<input onFocus="if(this.value=='password')this.value='';" name='password' id='password' type='password' value='<?=(isset($_COOKIE['password']))?$_COOKIE['password']:'password';?>' size='30' />
			<input type='submit' value='Submit' />
		</form>
	</div>
<!--end login box-->
